<?php


class DbTable_Cliente extends Zend_Db_Table_Abstract
{
    protected $_name = 'Cliente';
    protected $_rowClass = 'Cliente';
    protected $_primary = 'id';
    
    
    
    public function hasCpf($cpf){
    	$result = $this->fetchAll(array("cpf = (?)" => $cpf))->current();

    	return !is_null($result);
    }
    
    
    public function getByFilter(array $filtro){
    	return $this->fetchAll($filtro);
    }
}